Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 865 Bytes

ValidateField.mdx

File metadata and controls

39 lines (33 loc) · 865 Bytes

import { Description, Property, Title } from '~/components';

<Title>ValidateField</Title> Type that defines the validation function of a field.

ValidateField

Type that defines the validation function of a field.

Definition

  • ValidateField <Property {...properties.ValidateField} />

export const properties = { ValidateField: { type: { type: 'function', params: [ { name: 'value', type: { type: 'custom', name: 'Maybe', href: '../Maybe', generics: [ { type: 'custom', name: 'FieldValue', href: '../FieldValue' }, ], }, }, ], return: { type: 'custom', name: 'MaybePromise', href: '../MaybePromise', generics: ['string'], }, }, }, };